--- id: TASK-021 title: Team stat bars + quarter linescore for stick-and-ball sports status: "\U0001F7E6 Backlog" assignee: [] created_date: '2026-06-17 23:47' updated_date: '2026-06-18 01:17' labels: - feature dependencies: [] priority: medium ordinal: 21000 --- ## Description Extend the soccer team-stat bars (TASK-011) to NBA/WNBA (and likely NHL/NFL). ESPN's basketball summary boxscore.teams[].statistics is a FLAT name/displayValue/label list (FG, FG%, 3PT, FT, rebounds, assists, steals, blocks, turnovers) — same shape soccer uses, so mapTeamStats just needs a per-sport curated key list instead of the hardcoded soccer set. Also add a quarter/period linescore strip from competitors[].linescores (e.g. away [18,11,...] / home [14,13,...]). NOTE: team fouls/timeouts are NOT in the summary stats — treat as unavailable. Baseball stays nested (batting/pitching) and keeps the per-player box only. ## Acceptance Criteria - [ ] #1 mapTeamStats supports a per-sport curated stat list; NBA/WNBA show team-stat bars - [ ] #2 NHL/NFL team-stat bars where ESPN ships flat team stats - [ ] #3 Quarter/period linescore strip in the detail view from competitors[].linescores